#include "DList.h"

void test()
{
	ListNode* plist = ListInit();
	//ListPushBack(plist, 1);
	//ListPushBack(plist, 2);
	//ListPushBack(plist, 3);
	//ListPushBack(plist, 4);
	//ListPrint(plist);
	//ListPopBack(plist);
	//ListPrint(plist);
	ListPushFront(plist, 1);
	ListPushFront(plist, 2);
	ListPushFront(plist, 3);
	ListPushFront(plist, 4);
	ListPrint(plist);
	//ListPopFront(plist);
	ListNode* find = ListFind(plist, 3);
	//ListInsert(find, 100);
	ListErase(find);
	ListPrint(plist);
}

int main()
{
	test();
	return 0;
}